Initial Exploration

This is a line graph of capture rate by months by Zone:

This is a scatter plot of paper vs. mgp capture rate (nothing interesting looking at either with overall):

## `geom_smooth()` using method = 'loess' and formula 'y ~ x'

Looking at it with parallel coordinates:

Maybe exclude overall?:

And diversion rate (for comparison - Virginia hits in the 40s):

Where are buildings?

## Warning: Removed 128 rows containing missing values (geom_point).

Trying to size based on ghg emissions:

## Warning: Removed 1071 rows containing missing values (geom_point).

Lower Portion of Electricity Usage:

## Picking joint bandwidth of 65300

Higher Portion (26 high outliers included nowhere):

## Picking joint bandwidth of 746000

GhG Emissions:

## Picking joint bandwidth of 49.1

This is a Cleveland Dot Plot of greenhouse gas emissions:

Ridges Based on Building Type:

## Picking joint bandwidth of 138

Not sure how to visualize, but the roof stuff based on area:

#ANALYSIS/MATHY STUFF

#SAN FRAN LISTED AS 10,500,000 M^2 OF ROOFSPACE, 
#1 METER = 3.28084 FEET,
#POTENTIALLY EQUALS 917,000 FEWER METRIC TONS
#EQUIVALENT OF 23,500,000 TREE SEEDLINGS GROWN FOR TEN YEARS
#OR 194,000 PASSENGER CARS TAKEN OFF THE ROAD FOR 10 YEARS
#87% OF SAN FRAN ROOFTOPS WORK
#ACCORDING TO NOAA, NYC GETS 55% OF POSSIBLE SUNLIGHT, SF GETS 67

(917000/10500000) * sum(filter(df_area, building_area >= 0)$building_area) * 3.28084 * 0.87 * (55/67)
## [1] 315753087
#CONSERVATIVE VERSION - 2011 NYT SAID 2/3 OF ROOFTOPS WERE SOLAR PANEL COMPATIBLE
(917000/10500000) * sum(filter(df_area, building_area >= 0)$building_area) * 3.28084 *0.67 * (55/67)
## [1] 243166171
#FOR CONTEXT - 
per_footage <- sum(filter(df_build_energy, ghg >= 0 & `DOF.Gross.Floor.Area..ftÂ..` >= 0)$ghg)/sum(filter(df_build_energy, ghg >= 0 & `DOF.Gross.Floor.Area..ftÂ..` >= 0)$`DOF.Gross.Floor.Area..ftÂ..`)
per_footage * sum(filter(df_area_full, bldgarea >= 0)$bldgarea)
## [1] 31099386
#ESTIMATES THAT OUR BUILDINGS HAVE 31,099,386 GHG

#CONSERVATIVE - 243166171 GHG REDUCTION = 7.82xTOTAL GHG

#AGRESSIVE - 315753087 GHG REDUCTION = 10.15xTOTAL GHG